﻿namespace ETestIT.UI
{
    using System;
    using System.Web.UI;
    using Domain.Services;
    using StructureMap;

    public partial class Main : MasterPage
    {
        IAuthenticationService authenticationService;

        protected void Page_Load(object sender, EventArgs e)
        {
            authenticationService = ObjectFactory.GetInstance<IAuthenticationService>();
        }

        protected void btnExit_Clicked(object sender, EventArgs e)
        {
            authenticationService.SignOut();
        }
    }
}